

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Model Views Operations [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Model Views,Model Views Operations,Model Views Define Search,Model Views Properties,Model Views Import As XML,Model Views Export As XML,Model Views Enable Technology-Defined View,Model Views Move Objects Between Views,Model Views Move Objects Into Favorites,Model Views Use Objects In Views And Favorites,Model Views Display Recent Postings,Model Search,Model Search To Populate Model Views,Favorites,Favorites Drag Objects Into,Recent Postings,Recent Postings Display,Technology-Defined Model View,Technology-Defined Model View Set Up">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Model Views Operations</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="model_views_context_menus.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="diagram_slideshow.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_SubHeadingL1"><a name="search"></a><span class="f_SubHeadingL1">Define View Search</span></p>
<p class="p_BodyText"><span class="f_BodyText">When you:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">First create a View, the </span><span class="f_UIControl">Create New View</span><span class="f_Bulletlist1"> dialog displays</span></li>
<li><span class="f_Bulletlist1">Select to display the View properties, the </span><span class="f_UIControl">View Properties</span><span class="f_BodyText"> </span><span class="f_Bulletlist1">dialog displays.</span></li>
</ul>
<p class="p_BodyText"><span class="f_BodyText">These two dialogs are identical. However, in the Corporate, Business and Software Engineering, Systems Engineering and Ultimate editions of Enterprise Architect, a <a href="monitor_events.htm">work flow</a> feature is added to the dialogs (second illustration).</span></p>
<p class="p_TextIndentedL2"><img src="view%20propertiesa.png" width="390" height="195" border="0" alt="View PropertiesA"><span class="f_TextIndentedL2"> &nbsp;&nbsp;&nbsp;&nbsp; <img src="view%20properties.png" width="390" height="229" border="0" alt="View Properties"></span></p>
<p class="p_BodyText"><span class="f_BodyText">In the </span><span class="f_MenuKeyField">Name</span><span class="f_BodyText"> field, type a name for the View.</span></p>
<p class="p_BodyText"><span class="f_BodyText">In the </span><span class="f_MenuKeyField">Search</span><span class="f_BodyText"> field, either:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Type the name of an existing search</span></li>
<li><span class="f_Bulletlist1">Click on the drop-down arrow and select an existing search from the lists, or</span></li>
<li><span class="f_Bulletlist1">Click on the </span><span class="f_MenuKeyField">[ ... ]</span><span class="f_Bulletlist1"> (Browse) button to display the </span><span class="f_UIControl"><a href="creating_search_filters.htm">Manage Searches</a></span><span class="f_Bulletlist1"> dialog, edit an existing search or define a new one, then </span><span class="f_MenuKeyField">Close</span><span class="f_Bulletlist1"> the dialog and type or select that search name in the </span><span class="f_MenuKeyField">Search</span><span class="f_Bulletlist1"> field.</span></li>
</ul>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="952" bgcolor="#efeff7" style="width:952px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="952" bgcolor="#f7f7ff" style="width:952px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">For a custom SQL search statement, the statement should return the </span><span class="f_TiporNoteText" style="font-style: italic;">guid</span><span class="f_TiporNoteText"> and </span><span class="f_TiporNoteText" style="font-style: italic;">type</span><span class="f_TiporNoteText"> of the object found so that Enterprise Architect can search for the selected item in the </span><span class="f_UIControl">Project Browser</span><span class="f_TiporNoteText">. For example:</span></p>
<p class="p_TiporNoteText"><span class="f_TiporNoteText" style="font-style: italic;">SELECT ea_guid AS CLASSGUID, Object_Type AS CLASSTYPE, Name FROM t_object</span></p>
</td>
</tr>
</table>
</div>
<p class="p_BodyText"><span class="f_BodyText">If required, in the </span><span class="f_MenuKeyField">Search Term</span><span class="f_BodyText"> field type a specific value to search for.</span></p>
<p class="p_BodyText"><span class="f_BodyText">If you are working with the </span><span class="f_BodyText">Corporate</span><span class="f_BodyText"> or extended versions of Enterprise Architect, and you want the search to run automatically and refresh the results, select the </span><span class="f_MenuKeyField">Refresh this search</span><span class="f_BodyText"> checkbox. The </span><span class="f_MenuKeyField">Frequency</span><span class="f_BodyText"> field has three sections, for hours, minutes and seconds. Click on the appropriate section and use the up and down arrows at the end of the field to set the interval for refreshing the search results. You can also set the refresh to display a pop-up notification if the search results change. To do this, select the </span><span class="f_MenuKeyField">Notify me when new results found</span><span class="f_BodyText"> checkbox.</span></p>
<p class="p_BodyText"><span class="f_BodyText">Click on the </span><span class="f_MenuKeyField">OK</span><span class="f_BodyText"> button. The View is created (or updated) in a collapsed state. When you expand the View, the search executes and populates the View.</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Display Recent Postings</span></p>
<p class="p_BodyText"><span class="f_BodyText">Recent Postings are added to the folder automatically if they refer to items in the </span><span class="f_UIControl">Model View</span><span class="f_BodyText"> and if they meet the criteria selected in the </span><span class="f_UIControl">Recent Post Options</span><span class="f_BodyText"> dialog. To display the contents of a posting, double-click on the entry. The </span><span class="f_UIControl">Discussion Forum</span><span class="f_BodyText"> displays, showing the selected message.</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Move Objects Into Favorites</span></p>
<p class="p_BodyText"><span class="f_BodyText">Drag any required package, diagram or element from the </span><span class="f_UIControl">Project Browser</span><span class="f_BodyText"> into the required Favorites folder.</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Move Objects Between Views</span></p>
<p class="p_BodyText"><span class="f_BodyText">Views and Favorites folders are fixed in the Views folder in which you create them, and you cannot move them. However, you can </span><span class="f_BodyText" style="font-weight: bold;">copy</span><span class="f_BodyText"> (by dragging) objects from </span><span class="f_BodyText">any View</span><span class="f_BodyText"> into any </span><span class="f_BodyText">Favorites</span><span class="f_BodyText"> folder, and </span><span class="f_BodyText" style="font-weight: bold;">move</span><span class="f_BodyText"> (by dragging) objects between any two Favorites folders.</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Use Objects From Model Views</span></p>
<p class="p_BodyText"><span class="f_BodyText">To make use of the elements, diagrams and packages held in any View or Favorites folder, click on the item and drag it into a diagram or a <a href="discussionforum.htm">Discussion Forum</a> posting. The item behaves in the same way as if you dragged it from the </span><span class="f_UIControl">Project Browser</span><span class="f_BodyText">.</span></p>
<p class="p_SubHeadingL1"><a name="impexp"></a><span class="f_SubHeadingL1">Export/Import Views</span></p>
<p class="p_BodyText"><span class="f_BodyText">You export Views to create an XML file that you can:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Import into another model as a user-created Model View or</span></li>
<li><span class="f_Bulletlist1">Call from an MDG Technology Selection (MTS) file to access the Technology-defined View provided by the active MDG Technology.</span></li>
</ul>
<p class="p_BodyText"><span class="f_BodyText">The export and import functions are available from the Model Views root-node context menus.</span></p>
<p class="p_BodyText"><span class="f_BodyText">When you use the </span><span class="f_BodyText" style="font-style: italic;">export</span><span class="f_BodyText"> function, it acts on the complete set of View folders in the selected My Views root node, Model Views root node, or user-generated root node. You cannot export individual Views, nor can you export Favorites folders. The function displays the </span><span class="f_UIControl">Save As</span><span class="f_BodyText"> dialog, on which you browse for the directory location for the exported XML file, and specify the file name.</span></p>
<p class="p_BodyText"><span class="f_BodyText">When you use the </span><span class="f_BodyText" style="font-style: italic;">import</span><span class="f_BodyText"> function, it displays the </span><span class="f_UIControl">Select Import Filename</span><span class="f_BodyText"> dialog on which you browse for the directory and XML file you want to import. The import creates a new Model View folder with the same name as the copied root node.</span></p>
<p class="p_SubHeadingL2"><a name="tdv"></a><span class="f_SubHeadingL2">Set Up a Technology-Defined View</span></p>
<p class="p_BodyText"><span class="f_BodyText">To set up the Technology-defined View for an MDG Technology, you:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=1><span class="f_NumberedList">Create a user-generated Model View in Enterprise Architect while using the technology</span></li>
<li value=2><span class="f_NumberedList">Populate it with the required View folders and Views.</span></li>
<li value=3><span class="f_NumberedList">Export the Views from that Model View as an XML file to an appropriate location</span></li>
<li value=4><span class="f_NumberedList"><a href="working_with_mts_files.htm">Create a call to the file from the technology's MTS file</a>.</span></li>
</ol>
<p class="p_BodyText"><span class="f_BodyText">Thereafter, any model for which the MDG Technology is active </span><span class="f_BodyText" style="font-style: italic;">automatically</span><span class="f_BodyText"> displays those Views in a Technology-defined View.</span></p>




            </div>
          </div>
        </div>



</div>


</body>
</html>
